package com.shinewind.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "分页类，用于对查询结果进行分页")
public class PageVo<T> implements Serializable {
    @ApiModelProperty(value = "返回的数据")
    private List<T> data;
    @ApiModelProperty(value = "执行是否成功")
    private boolean flag;
    @ApiModelProperty(value = "返回的消息")
    private String message;
    @ApiModelProperty(value = "总记录数")
    private Integer total;
}
